package com.wxs.common.pojo;

import java.util.List;

public class Resource {
	private Integer id;

	private String name;

	private Integer pid;

	private Short rtype;

	private Integer rorder;

	private String resource;

	private List<Resource> children;
	private boolean hasChildren;

	public boolean getHasChildren() {
		hasChildren = this.children == null || this.children.isEmpty() ? false : true;
		return hasChildren;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Short getRtype() {
		return rtype;
	}

	public void setRtype(Short rtype) {
		this.rtype = rtype;
	}

	public Integer getRorder() {
		return rorder;
	}

	public void setRorder(Integer rorder) {
		this.rorder = rorder;
	}

	public String getResource() {
		return resource;
	}

	public void setResource(String resource) {
		this.resource = resource == null ? null : resource.trim();
	}

	public List<Resource> getChildren() {
		return children;
	}

	public void setChildren(List<Resource> children) {
		this.children = children;
	}

}